package com.wang.springframework.beans.factory.config;

import com.wang.springframework.beans.factory.HierarchicalBeanFactory;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/8/24/024 18:20
 **/
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory,SingletonBeanRegistry {

    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    /**
     * 增加beanPostProcessor
     * @param beanPostProcessor beanPostProcessor
     */
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例对象
     */
    void destroySingletons();
}
